<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/10/13
  Time: 9:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>日记列表</title>
    <link rel="stylesheet" href="../css/bootstrap.css">
</head>
<body>
        <table class="table">
            <caption style="text-align: center">日记列表</caption>
            <c:forEach var="d" items="${diaries}">
                <tr>
                    <td>${d.diaryDay}</td>
                    <td>${d.weather}&nbsp;&nbsp;心情：${d.mood}</td>
                    <td style="width: 150px">${d.reportTime}</td>
                </tr>
                <tr>
                    <td colspan="2">${d.contents}</td>
                    <td>
                        <a href="view?id=${d.id}">查看</a>
                        <a href="edit.jsp?id=${d.id}">修改</a>
                        <a href="del?id=${d.id}">删除</a>
                    </td>
                </tr>
            </c:forEach>
        </table>

</body>
</html>
